﻿using System.Collections.Generic;

namespace Client
{
    public class ClientChatForms
    {
        private readonly Dictionary<int, ClientChatForm> _clientChatFormDictionary =
            new Dictionary<int, ClientChatForm>();

        public ClientChatForm GetClientChatForm(int chatSign)
        {
            ClientChatForm clientChatForm;
            _clientChatFormDictionary.TryGetValue(chatSign, out clientChatForm);
            return clientChatForm;
        }

        public void AddClientChatForm(int chatSign, ClientChatForm chatForm)
        {
            _clientChatFormDictionary.Add(chatSign, chatForm);
        }

/*
        public bool DeleteClientChatForm(int chatSign)
        {
            return _clientChatFormDictionary.Remove(chatSign);
        }
*/

        public void ClearAll()
        {
            _clientChatFormDictionary.Clear();
        }
    }
}